package com.wql.service.impl;

import com.aaa.entity.GUnit;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wql.service.GUnitService;
import com.wql.mapper.GUnitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 咕噜咕噜
* @description 针对表【g_unit(商品计量单位)】的数据库操作Service实现
* @createDate 2023-03-07 16:47:16
*/
@Service
public class GUnitServiceImpl extends ServiceImpl<GUnitMapper, GUnit>
    implements GUnitService{

    @Autowired
    private  GUnitMapper gUnitMapper;
    @Override
    public Result selectAll() {
        List<GUnit> gUnits = gUnitMapper.selectList(null);
        return new Result(2000,"成功",gUnits);
    }
}




